package com.nts.bupna.model;

import static com.nts.bupna.util.StringUtil.unescape;

public abstract class ConditionBase implements Container<Activity>, Conditional {

    Activity activity;
    String condition;

    @Override
    public void add(Activity activityParam) {
        activity = activityParam;
    }

    public Activity getActivity() {
        return activity;
    }

    @Override
    public String getCondition() {
        return condition;
    }

    @Override
    public void setCondition(String condition) {
        this.condition = unescape(condition);
    }
}
